<template>
  <div>
    <input type="text" v-model="inputMsg">
    <p><button @click="sendDataHandler02">点击触发事件（有参数）</button></p>
  </div>
</template>

<script>
    export default {
      name: "ChildComponent02",
      data() {
        return {
          inputMsg: "初始化消息"
        };
      },
      methods: {
        sendDataHandler02() {
          this.$emit("myEvent02", this.inputMsg);
        }
      }
    }
</script>

<style scoped>

</style>
